gh-139588: Docs: PDF/LaTeX: bump max list depth#140709
gh-139588: Docs: PDF/LaTeX: bump max list depth#140709AA-Turner merged 3 commits intopython:mainfrom
Conversation
Prevents LaTeX PDF build error `Too deeply nested`. (Regression from python#139509.)
Prevents LaTeX PDF build error `Too deeply nested`. (Regression from python#139509.)
|
Thanks, I've also increased it to 8 per Jean-François' suggestion. A |
|
Thanks @m-aciek for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
(cherry picked from commit ce4b0ed) Co-authored-by: Maciej Olko <maciej.olko@affirm.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit ce4b0ed) Co-authored-by: Maciej Olko <maciej.olko@affirm.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
GH-140724 is a backport of this pull request to the 3.14 branch. |
|
GH-140725 is a backport of this pull request to the 3.13 branch. |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
FYI I discovered yesterday that this PR didn't fully fixed the PDF build issue. Now The error from Index: Doc/conf.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/Doc/conf.py b/Doc/conf.py
--- a/Doc/conf.py (revision 8255901127193a0b5e82034e730f7749b68c460f)
+++ b/Doc/conf.py (revision a93073936f4ea1cd3fa62e0a478b1b3aa1f40a98)
@@ -355,6 +355,7 @@
\let\Verbatim=\OriginalVerbatim
\let\endVerbatim=\endOriginalVerbatim
\setcounter{tocdepth}{2}
+\makeatletter\let\@toodeep\relax\makeatother
''',
# The paper size ('letterpaper' or 'a4paper').
'papersize': 'a4paper',I plan to prepare a follow-up PR soon. |
|
Hi, I guess setting `'maxlistdepth'` to a higher value `'10'` or `'12'` did not help? It would be nice to fetch the actual reported LaTeX error for analysis, if at all possible.
|
I will try it later.
The logs are available here: https://github.com/m-aciek/python-docs-offline/actions/runs/22630330823. There is pdf-logs.zip artifact with |
|
In Try increasing the setting of |
|
I am sorry for confusion, I was wrong! I was working on an old checkout from repository 🤦 and didn't have above changes locally. Sorry for the noise, and thank you for the help @jfbu! |
|
no problem, glad you could figure it out!
|
Prevents LaTeX PDF build error
Too deeply nested. (Regression from #135945.)Thanks @jfbu for the fix suggestion.
Better alternative to #140445.
Could it be labeled for backport on 3.13-3.15 please?
📚 Documentation preview 📚: https://cpython-previews--140709.org.readthedocs.build/